import request from '@/utils/request'

// 查询侧边栏管理列表
export function listBroadside (query) {
  return request({
    url: '/cms/broadside/list',
    method: 'get',
    params: query
  })
}

// 查询侧边栏管理详细
export function getBroadside (id) {
  return request({
    url: '/cms/broadside/' + id,
    method: 'get'
  })
}

// 新增侧边栏管理
export function addBroadside (data) {
  return request({
    url: '/cms/broadside',
    method: 'post',
    data: data
  })
}

// 修改侧边栏管理
export function updateBroadside (data) {
  return request({
    url: '/cms/broadside',
    method: 'put',
    data: data
  })
}

// 删除侧边栏管理
export function delBroadside (id) {
  return request({
    url: '/cms/broadside/' + id,
    method: 'delete'
  })
}
